Login by navbar without refresh on redirect