When making ajax calls, restrict the minimum input length to 2.