Add a sample app with login function