updated api v2 and doorkeeper for user authentication