fix bug for REMOTE_ADDR in login with several ip, thx @yjarosz