trying to add registration checks but still registering user with $errors