Fixed validation issue for registration page