flagging user in db as logged in or not