- added prelim functions for logging in