added forgotPassword setPreferences and getProfile