Added check to see if user is not logged in.