Updated log-in

Updated log-in process to be database-driven. Added possibility to
create users.