auth service added. fixed a bug about assigning master profile.