Simplified the registration api