         
         Auth.auth().createUser(withEmail: email!, password: password!, completion: { (user, error) in
             if error != nil{
+                self.displayAlertMessage(userMessage: "Account was not created properly.")
+
+                
+                
                 print(error!)
                 return
             }

        })
        
        
        
//         Display alert message with confirmation
//        var myAlert = UIAlertController(title:"Alert", message:"Registration is successful.", preferredStyle:UIAlertControllerStyle.alert);
//        
//        let okAction = UIAlertAction(title:"Ok", style: UIAlertActionStyle.default){
//            action in
//            self.dismiss(animated: true, completion:nil);
//        }
//        myAlert.addAction(okAction);
//        self.present(myAlert, animated:true, completion:nil);
    }
    
    

        if(password != confirmPassword)
        {
            // Display alert message
            displayAlertMessage(userMessage: "Account already exists. Try your best to login.")
            return;
            
        }
