fixed references to username for getting a user... email should be used instead