Fixed a bug bugs with tokens and users registering