Implemented a fix to the User model logic with the nil passed for Password field