Added license
Better error handling, don't ajax submit form when code is blank