made validate controller method accepting the id or not