added regex to check for valid func_name
added add problem form checks and input validation