some more utility JS
1. Test create and login as admin/user, test sessions.
2. Minor bug fixes.
minor