Added password encryption to User API