fixed issue where user page would always redirect if the user is already logged in