Resolve NullPointException-give message when username doesnt exist