restricting size of input