added email + password front-end checking