scalar check on float and input validation