changed the login and sign up pages
partially moved user logic to new model