adds input validation - not working