implemented setUsername to protect against case where users with different casing exist: username: admin , username: Admin, username: AdMiN .