Resolved NullPointerException caused by hard-coded usernames.