working on getting login function working