bugfix: Assumed name.match always returned an array. regex no match returns typeof null and not array.
Bugfix: when a picture is dragged onto the profile avatar form field, it does not update the underlying <input> element and thus does not save user's avatar.