Use intval and add password validation at create