Update ViewController.m

Fixed error of userid being set first time around without valid login