Login system implemented and fixed