finished fixes to the login
finished fixes to the login
changes to the type of user