Refactored code for manual entry of loyalty points