Added json method for checking username validity