validation working perfectly on front end