complete login&register
fix format