User registration username and password validation issue fix