refactor: Refactor application and login scripts, change controllers...