Login refactor 2

Contains the login refactor and webpack