Try to login from storage before redirecting

Try to login from storage before redirecting.
This allows users to refresh the page without being redirected to the dashboard.