public async Task <IActionResult> Register([FromBody] UserRegisterDTO userDTO)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            userDTO.Username = userDTO.Username.ToLower();
            if (await _jwtAuthService.UserExist(userDTO.Username))
            {
                return(BadRequest("user already exists"));
            }

            var createdUser = await _jwtAuthService.Register(userDTO);

            return(StatusCode((int)HttpStatusCode.Created, "User registered successfully"));
        }