'') {
                $('#register-error').slideUp();
                $('#register-given').focus();
            } else if (family === '') {
                $('#register-error').slideUp();
                $('#register-family').focus();
            } else if ((email === '') || (!emailPattern.test(email) && !email.endsWith("@localmail"))) {
                if (email === '') {
                    $('#register-error').slideUp();
                } else {
                    var errors = [ $("#errorReason-InvalidE