added validation messages
fixed validation with file inputs