fixed bug related to passing of user logged in ID