Authenticate users,limit access and add sidebar