make username required and unique, added tests, fixed typo for ajax test