fixed bugs and included registration app
added templates for registration