Fixed capitalisation on error message, added additional security measures.