Fix ajax. Need to review bug with blank input.