finish login struct

finish login struct