basic app with registration