fixed attribute error for username in form