changed input type to number
added rules