removed extra line from forms validate function