finishing login and admin