add login page , fix some problems