login error and processing fixed