fixed problem of not being able to render the button when the user is not signed in