implement the devise and devise_invitable gem. completed the user registration.