made some investigation about authentication
small improvements in templates
small fixes
Merge branch 'auth'