added better validation for potential users