Redirect the login and signup pages to the dashboard if the user is already logged in