added reg and auth controller