added authentication user logic