implemented login functionality;
implemented part of DAO;