add login db validation, redisigned db and some minor changes