Created username checking function