Fix password flow authorization

Fized procedure for password flow authorization