Created navbar directive to dynamically change the navbar template depending whether the user is authorised or not