Log in and logout in admin working