Field validation implemented when creating users. Bugs found and fixed