working frontend validation + form