removed http prefix when checking for localhost