Forgot to put .value at the end of a variable, caused 10 minutes of frustration