Feature/client side validation

This PR will fix https://github.com/globaleaks/GlobaLeaks/issues/555 and provide client side fixing for https://github.com/globaleaks/GlobaLeaks/issues/545