Updated to have failsafe logins and track by user/ip combo