Now checking for duplicate users on registration, fixed some other stuff