Fix password

Fix the password depending on selection in user registration settings