sp incorrectly selecting space as validation error, modified sp