Added a check for if the user is already logged in.