Demo application : login pattern