create list function plus a fucntnction that just logs in (which will be helpful when we start to refactor this mess).