fixed bug on interaction btwn api.py and username.html