Set password with code