fix bug, separate login, sign in, some rendering