modified app to work with the new User class (with email)