updating backend to work with email address instead