user is now directed to the home page automatically