How to register the application?