Implemented Resource owner flow