Fixes issue where password can be reset