add specs for user registrations controller, add in the condition to check for only completed order to avoid the issue to double credit, use where instead of find for find_by_ref_id, update specs for the changes