added testing logic to the Auth