users are routed to dashboard page if logged in