simplify user check for valid id in the controller using a regex + remove unused error codes