add responsive input validation