added javascript regex for evaluating form input