fixed issue with discount calc when user logs in