updated to stay on app details if container port invalid