refactors user registration spec