getting user and his key seperately