added conditional in the home controller incase no user is logged in