Finished the login script (users *should* be able to login now).