changes for password issue with user rest functionality