error catching and login namelbl