adding extra check and authorize button