Finished Regist, harf of Login, and part of framework.