first attempt at a login script