Added the username to the POST request so it can be accessed (checks it's there first). Fixes glitch for now, tests needed though.