improved msg_perf_thresholds()
improved validate_password()