Password changing enchancements.

Now you don't need to relogin when you change your password. Password
check added.