Added ip validation and better loading status handling