Login improved; Logout implemented
DB modifications