requests login code