Added user login and admin authorization