refactored styles and login template