bootstrap alerts and show hiding login buttons