Refactors login.js and displays new entries via createModal