Added password encryption, login, logout, ...