added a user collection for authentication. Also fixed some minor bugs