add login button, add authenticated function