Added better error messages.

Edited custom error message.