Modified user table to make email unique. Login through email, logout implemented.