req.session.login now contains the user.
req.session.user_id has the user id.
Added time-between functions.