login and redirection to admin or home implemented