added code to verify username