added error messages if validations fails
final changes