added check for unAuthorized User.