Refactoring in sign_up and delete_user