Move user signUp into factory