[TASK] Create form validation mixin

let's use path.join for all url construction.