fix bug on error login from db connection
2.0.6