Added error messages for required fields