added username, change login from email to user, renamed method loggedin to logged_in
moved authotization and login to class auth