display alerts when the user is not logged + refresh post after vote