Made required fields validate on front-end