Change the application structure, develope the dao and service logic for login, develope the configuration classes.