fixed bugs from writing tests section, registering new users is functional now.