commented code and fixed local login