Add progress dialog while registering