corrections for login check and minor changes in tableModels