refactored user_store into user