finished authentication system