Added login, register and registerPreferences (partially woring) features