Added login, logout, add user and reset password stuff