added a conditition for the case where an admin with no related branches logs in.
overriding language settings to test for form error messages.