changed conditional to if params[:email][:text]. On the off chance that a POST request is made with just params[:email], the current state of the code will throw a 500 on line 20. By making the conditional more strict, we prevent this scenario.