Fix in proved login

In proved login i missed handling the case when the currently logged in user and the new user to be logged in is the same. I fixed that by handling that case.