Adds user sessions and validation.