change the login page and refactor packages