active check added in authenticatefunction