Fix password flow authorization

Fixed procedure for password flow authorization