Add constructor and login methods.