setpassword functional and begin login