Corrected formatting issues

Corrected formatting issues in error-checking