auto login as user on profile page fixed