refactor model method for password update
passwordless registration