added viewDidAppear method to handle if user already login