added simple validation
improvement uploads and validation