title: How to check whether the user is new user or old user
body: <p>I have one login screen, which have email, password. And in register screen after user registred they will come to login screen to login.</p>
  
  <p>That time I need to  check , if the user is first time user or old user. If first time user means I need to redirect them to my feedback screen. Or old user means I need to redirect them to my home screen. How to do that with firebase?</p>
  
  <p>Her my code for login screen :</p>
  
  <pre><code> @IBAction func loginWithUserNamePassword(){
  
  
      loginWithMailAndPassword((username.text?.trimWhiteSpace)!, password: (password.text?.trimWhiteSpace)!) { (user, error) in
  
          if error != nil{
  
              KRProgressHUD.dismiss()
              SCLAlertView().showError("Login Error", subTitle: error!.localizedDescription)
  
  
          }
          else {
              KRProgressHUD.dismiss()
              if user!.emailVerified{
                  currentUser = user
                  enableSync()
                  self.callHomescreen()
              }
              else
              {
                  AlertView().showError("Login Error", subTitle: "This email is has not been verified yet")
              }
          }
  
          }
  
      }
  </code></pre>
  
  <p>Or else in my feed back screen there are some text fields. And the model class is :</p>
  
  <pre><code>var feedbackData = [files]()
  
  class files {
  // having some string variables
  }
  </code></pre>
  
  <p>By using this, if my data is empty in my feedback screen redirect the user to feedback screen or else redirect them to home screen. Can we do that?</p>
  
  <p>Updated :</p>
  
  <pre><code>if profileData.FirstName.characters.count &lt;= 0 {
  
  
               print("Home screen calling")
  
          }
  
          else if profileData.FirstName.characters.count &gt; 0  {
               print("feedback screen calling")
  
          }
  </code></pre>
  
  <p>Thought of trying like this. But no use.     </p>