made a start on the login script