Simplify login

Added a method to get the users email via AccountManager and set it as the deualt value in the email field. Also fixed some local library errors.