Working version. Login and voting finished.