Added user login to templates and rating system.