Users can add account and refactored the code