login working, including loading animation and error panel