Add function to regenerate user password