update $_SERVER[] value check

Added error handling if the IP cant be detected in $_SESSION