complete login activity.and the frame is completed