Validate input format a little bit