added authenticate user to entries controller