Adds user login and cookie based sessions