fixed one issue with dashboard redirecting if user is already logged in.