fixed auth issue with registering