Added the controller methods and completed the ui for register payment method ref #3