Redirecting user from login page to home page whem the form is submitted