Refactroed lock() and unlock()
Fixed login bugs
Recompiled JS and CSS