Added simple user login and cookies.