CHANGED:complete the user login widget function;