added authentication and added type of user
finish service call funcation