Added register functionality and implemented some feedback errors for the registration process