authenticate - add userID

Added user ID to the authentication checks, this is now stored in the
session. This will be needed later on for various checks in dealing
with lessons.