new login DAO, other improvements
introduced user login feature