basic login flow.
redirect to dashboard if logged in