finish user authentication and pagination