Fix bug in case username nil in iOs