Added method to create API key for a user