Adding error messages

Adding error messages