Fix #775 js validation when not setting password

changed indentation, actual code change is line 39. Don't validate the
password until someone types in the password field.