fixed bugs in authentication module, updated database schema, updated views