actually validate input correctly this time for numbers between 1 and x