fixed bug with username in registration