leg: improve leg validations for numbers

Use :numericality to enforce integers only.

Signed-off-by: diditclear <didyourupgradeclear@gmail.com>