improve register and getCommunityNotValidUsers