dynamically remove login button when viewing the login page