refactored guest user creation