def register
      @user = User.new(require_params)
      if @user.save
        render json: {message: @user, success: true}, status: 201
      else
        render json: {message: @user.errors.full_messages, success: false}, status: :ok
      end
    end
def register
      @user = User.new(require_params)
      if @user.save
        render json: {message: @user, success: true}, status: 201
      else
        render json: {message: @user.errors.full_messages, success: false}, status: :ok
      end
    end
POST /register
 params: name, email, password