Added registration/login logic. Working on reimplementing database backend.