Hiding multiple fields due to input is not working