modifying front end and adding int validation