improved authentication system