clientHandler for auth& register