check_username api now returns correct error message for invalid lengths etc