to provide authentication for app