updates & bug fixes

- finished login for all the current templates
- ported the registration class for mongodb
- ported the connection class for mongodb
- fixed a few minor bugs and html issues