Fix GetUserNameByEmail method for issue #331