Changed the uid variable name to username to better reflect what it represents.