Sends user to homepage unless they are signed in, in which case homepage goes to dashbard.