Automating user login with some cloud code.