Added more validations, more error responses and logging
More logging, bug fixing, removing sysos