finish admin login, make some ajustment for client