Check user autorized in template + add spin while loading