created method to get form values
added checkbox support to getFormValues method