SelectQuery func. edited
login detail from database