Fixed Jordan's input validation
it didn't the way it was done before. There's no "failure" option for ajax, so that wasn't doing anything. It's better to check those things before we even do the ajax call, just so it's faster.