Use loggedInUser instead of loggedInEmail (fixes #49)