Added required login and change password functions.