Update api for password verification