Added error messages
Added error messages