fix bug for login layout