final version of Autorization
final version checked