Fixed issue login auth
Added autocomplete for departments