Hooked up email check to the backend
Extended sign-in to display errors for invalid credentials and redirect upon success