fixed minor bugs, can now register new users