Surely this should be $_POST['username'] here