Implement password changing backend