added onclick events for regsitration flow