Added a redirect if user is already logged in