Implemented user authentication and integrated sample template.