Now:
If user enters the incorrect amount, the validation is done after trying to perform any action.
Could be: Maybe it would be possible to allow only numbers and point as a separator.