fixed validation of nagtive integers, thanks Stefan