fix for auth. failure
small changes for auth. handlers