check loan saving, show error msg and validate input