Using #states ['required'] based on input