change javascript name
remove logging
Add username check
For now it always return true
it only return false when username is empty("")