add validity to autorhize