Prevent user to enter too many chars in amount field (fixed #9) + Prevent user to cancel dialog when asking for password