     }
     */
 
-}
+
+


class LoginVC: UIViewController {

    @IBOutlet weak var txtUsername: UITextField!
    
    @IBOutlet weak var txtPassword: UITextField!

    
    @IBAction func signinTapped(sender: UIButton) {
        // Authentication Code
        
        var usrEntered = txtUsername.text
        var pwdEntered = txtPassword.text
        
        func userLogIn(){
            
            PFUser.logInWithUsernameInBackground(usrEntered, password:pwdEntered) {
                (user: PFUser!, error: NSError!) -> Void in
                if user != nil {
                    self.txtIncompleteFieldsMessage.text = "Logged in!"
                } else {
                    // The login failed. Check error to see why.
                }
            }
        }
        
            
        if usrEntered != "" && pwdEntered != "" {
            userLogIn()
        } else {
            self.txtIncompleteFieldsMessage.text = "All Fields Required"
        }
        
    }

        
        
        
       
    }
    

