updated Registered user login and admin functionality