Added input function for form functions with div wrap