Authentication and registration with token and progress dialog