added validations and error responses if fields are empty fixes #17