If you are looking at writing a login component - we have an example of that here: Creating a Login Component for the Experience Manager Weekend Site That shows you HOW TO write a login component for the AEM WEEKEND Site - that is created here: Getting Started with AEM Sites - WKND Tutorial