add referer and user_agent to user model
add session configuration