updated login function for mike to check