Authentication check

added in every path