code improvements for new credit card page

added integration test for added fields