login bug fixed, logout implemented