Am trying to direct a user to admin dashboard after login if user name and password exist in the database. if not then direct user back to the login page. But is not working