Fake bank account class I just some reviews on how I can make it more efficient or cleaner and what I should fix in general.

class bankAcc
{
public:
    bankAcc() = default;
    bankAcc(string fn, string ln) : firstName(fn), lastName(ln) {}
    bool createUser(istream &amp;is);
    bool login() const;
private:
    bool correctLogin(const string&amp;, const string&amp;) const;
    static vector&lt;string&gt; usernames;
    static vector&lt;string&gt; passwords;
    string firstName, lastName;
    string username, password;
};

vector&lt;string&gt; bankAcc::usernames;
vector&lt;string&gt; bankAcc::passwords;

bool bankAcc::createUser(istream &amp;is) {
    is &gt;&gt; username &gt;&gt; password;
    if (is.fail()) {
        cout &lt;&lt; "Invalid option" &lt;&lt; endl;
        cin.clear();
        return false;
    }
    usernames.push_back(username);
    passwords.push_back(password);
    return true;
}

bool bankAcc::login() const {
    bool login;
    string tempUser, tempPass; 
    cin &gt;&gt; tempUser &gt;&gt; tempPass;
    if (cin.fail()) {
        cout &lt;&lt; "Invalid options" &lt;&lt; endl;
        cin.clear();
        return false;
    }
    login = correctLogin(tempUser, tempPass);
    if (login == true) {
        cout &lt;&lt; "Logged on" &lt;&lt; endl;
        return login;
    }   
    else {
        cout &lt;&lt; "Incorrect info" &lt;&lt; endl;
        return login;
    }
    return login;
    }

bool bankAcc::correctLogin(const string &amp;tempUser, const string &amp;tempPass) const {

    if (usernames.empty() || passwords.empty())
        return false;
    bool usernamePassed, passwordPassed; int cnt = 0;
    for (auto c : usernames) {
        if (tempUser == c) {
            usernamePassed = true;
            break;
        }
        else {
            usernamePassed = false;
        }
        ++cnt;
    }
    if (passwords[cnt] == tempPass &amp;&amp; cnt &lt; passwords.size()) {
        passwordPassed = true;
    }
    else {
        passwordPassed = false;
    }
    return usernamePassed &amp;&amp; passwordPassed;
}
I have a few suggestions:

In your constructor, you are passing in string by copy when it is completely unnecessary to do so. You should pass these in by const reference:

bankAcc(const string &amp;fn, const string &amp;ln) { /*...*/ }


Also, this constructor should check whether or not fn or ln are clean inputs (i.e. they're valid first and last names). You can do this like so:

bankAcc(const string &amp;fn, const string &amp;ln) 
{
    if (fn == "" || ln == "")
        throw std::invalid_argument("Can't have empty names");
    firstName = fn;
    lastName = ln;
}


Speaking of firstName and lastName, I don't see a use for them here at all as they're only used in the constructor and nowhere else. Is there a need for them?

You should also practice the Principle of Sole Responsibility here. In other words, each class should have only one single responsibility to take care of. Your class is called bankAcc yet it really seems more like a BankAccountLoginValidator class to me. Your class isn't doing anything that a bank account should be doing (no balance, no withdrawal/deposit schemes etc). Moreover, you should generally separate I/O operations from the validation code in this class. Have the caller of the class objects perform the I/O and then have them use your class to validate their input. Your class should not be responsible for I/O. 

Finally, your use of two vectors to store the user-name and password is inefficient since you end up spending O(n) time searching for the right username in the usernames vector. Instead, look at using a hashtable to store this information instead. A hash-table in C++11 is called std::unordered_map. Then, your lookup operation can be done in O(1) amortized time. With this map, your correct_login() function becomes unnecessary. 

Here's your code refactored a bit:

class bankAcc
{
public:
    bankAcc() = default;
    bankAcc(const string &amp;fn, const string &amp;ln)
    {
        if (fn == "" || ln == "")
            throw std::invalid_argument("Error! Can't have empty names");
        firstName = fn;
        lastName = ln;
    }
    bool createUser(const string &amp;user_name, const string &amp;pass_word)
    {
        if (user_name == "" || pass_word == "")
            return false;
        /* Maybe add more validation code here */
        // ....

        uname_to_pass.insert(user_name, pass_word);
    }
    bool login(const string &amp; user_name, const string &amp;pass) const
    {
        return uname_to_pass[user_name] == pass;
    }

private:
    static unordered_map&lt;string, string&gt; uname_to_pass;
    string firstName, lastName;
    string username, password;
};